﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

namespace UIDocument
    {
    public partial class upload : System.Web.UI.Page
        {
        protected void Page_Load(object sender, EventArgs e)
            {

            }
        [WebMethod]
        public static string Vp(string data)
            {

            string ss = HttpContext.Current.Request.Files[0].FileName;

            HttpContext.Current.Request.Files[0].SaveAs(HttpContext.Current.Server.MapPath("/Image/" + ss));
            return "Hello VP Method Fired !!!!";
               
            }
        }
    }